<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交网站文章列表样式展示</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary-color: #4361ee;
            --light-gray: #f8f9fa;
            --medium-gray: #e9ecef;
            --dark-gray: #6c757d;
            --text-color: #212529;
            --transition: all 0.2s ease;
        }
        
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: var(--light-gray);
            color: var(--text-color);
            line-height: 1.6;
            padding: 30px 0;
        }
        
        .container {
            max-width: 1200px;
            padding: 0 20px;
        }
        
        .page-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--medium-gray);
        }
        
        .list-example {
            background-color: #fff;
            border-radius: 8px;
            padding: 30px;
            margin-bottom: 40px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        
        .example-title {
            font-size: 1.4rem;
            margin-bottom: 25px;
            color: var(--text-color);
            padding-bottom: 12px;
            border-bottom: 1px solid var(--medium-gray);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .example-title i {
            color: var(--primary-color);
        }
        
        .example-description {
            color: var(--dark-gray);
            margin-bottom: 25px;
            font-size: 0.95rem;
        }
        
        /* 文章卡片通用样式 */
        .article-card {
            border-radius: 8px;
            overflow: hidden;
            transition: var(--transition);
        }
        
        .article-card:not(:last-child) {
            margin-bottom: 25px;
            padding-bottom: 25px;
            border-bottom: 1px solid var(--medium-gray);
        }
        
        .article-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        }
        
        /* 作者信息样式 */
        .author-info {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            font-size: 0.9rem;
        }
        
        .author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-right: 10px;
            flex-shrink: 0;
        }
        
        .author-name {
            font-weight: 500;
            color: var(--text-color);
            text-decoration: none;
            margin-right: 10px;
        }
        
        .author-name:hover {
            color: var(--primary-color);
            text-decoration: underline;
        }
        
        .post-time {
            color: var(--dark-gray);
            margin-right: 10px;
        }
        
        .post-category {
            color: var(--primary-color);
            background-color: rgba(67, 97, 238, 0.1);
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        /* 文章内容样式 */
        .article-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 12px;
            transition: var(--transition);
        }
        
        .article-title a {
            color: var(--text-color);
            text-decoration: none;
        }
        
        .article-title a:hover {
            color: var(--primary-color);
        }
        
        .article-excerpt {
            color: var(--dark-gray);
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* 图片容器样式 */
        .article-images {
            margin-bottom: 15px;
            border-radius: 6px;
            overflow: hidden;
        }
        
        .single-image {
            width: 100%;
            height: 220px;
            background-color: var(--medium-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark-gray);
            font-size: 0.9rem;
        }
        
        .multi-image {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
            height: 160px;
        }
        
        .multi-image .image-item {
            background-color: var(--medium-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark-gray);
            font-size: 0.8rem;
        }
        
        /* 互动数据和操作样式 */
        .article-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.9rem;
            color: var(--dark-gray);
        }
        
        .article-stats {
            display: flex;
            gap: 18px;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .action-buttons {
            display: flex;
            gap: 15px;
        }
        
        .action-btn {
            color: var(--dark-gray);
            background: none;
            border: none;
            padding: 3px 8px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .action-btn:hover {
            color: var(--primary-color);
            background-color: rgba(67, 97, 238, 0.1);
        }
        
        .action-btn.liked {
            color: #dc3545;
        }
        
        .action-btn.bookmarked {
            color: #ffc107;
        }
        
        /* 紧凑样式特定样式 */
        .list-compact .article-card {
            display: flex;
            gap: 15px;
        }
        
        .list-compact .article-image-container {
            width: 120px;
            height: 120px;
            flex-shrink: 0;
        }
        
        .list-compact .article-content {
            flex-grow: 1;
        }
        
        .list-compact .article-title {
            font-size: 1.1rem;
            margin-bottom: 8px;
        }
        
        .list-compact .article-excerpt {
            font-size: 0.9rem;
            margin-bottom: 10px;
        }
        
        .list-compact .single-image {
            height: 100%;
        }
        
        /* 网格样式特定样式 */
        .list-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }
        
        .list-grid .article-card {
            border: 1px solid var(--medium-gray);
            padding: 20px;
            margin-bottom: 0;
        }
        
        .list-grid .article-images {
            margin-bottom: 15px;
        }
        
        .list-grid .single-image {
            height: 180px;
        }
        
        .list-grid .article-actions {
            flex-wrap: wrap;
            gap: 10px;
        }
        
        /* 简约样式特定样式 */
        .list-minimal .article-card {
            padding: 15px 0;
        }
        
        .list-minimal .article-title {
            font-size: 1.15rem;
            margin-bottom: 8px;
        }
        
        .list-minimal .article-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--dark-gray);
        }
        
        /* 悬停效果增强 */
        .hover-lift {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .hover-lift:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 20px rgba(0,0,0,0.1);
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="page-header">
            <h1>社交网站文章列表样式展示</h1>
            <p class="text-muted">展示不同风格的文章列表，支持无图和多图文章，包含完整的互动功能</p>
        </div>
        
        <!-- 示例1：标准列表样式 -->
        <div class="list-example">
            <h3 class="example-title"><i class="fas fa-list"></i> 标准列表样式</h3>
            <p class="example-description">包含完整信息的标准文章列表，展示文章标题、摘要、作者信息、互动数据和操作按钮</p>
            
            <!-- 带单张图片的文章 -->
            <div class="article-card hover-lift">
                <div class="author-info">
                    <div class="author-avatar">张</div>
                    <a href="#" class="author-name">张明</a>
                    <span class="post-time">2小时前</span>
                    <span class="post-category">科技</span>
                </div>
                
                <h2 class="article-title">
                    <a href="#">人工智能在内容创作领域的应用与挑战</a>
                </h2>
                
                <p class="article-excerpt">随着生成式AI技术的快速发展，人工智能在内容创作领域的应用越来越广泛。从自动写作到图像生成，AI正在改变传统的创作模式，但同时也带来了版权、原创性等诸多挑战...</p>
                
                <div class="article-images">
                    <div class="single-image">
                        <i class="fas fa-image me-2"></i> 文章配图
                    </div>
                </div>
                
                <div class="article-actions">
                    <div class="article-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>2.4k</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>48</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-share-square"></i>
                            <span>12</span>
                        </div>
                    </div>
                    
                    <div class="action-buttons">
                        <button class="action-btn">
                            <i class="far fa-heart"></i>
                            <span>点赞</span>
                        </button>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 带多张图片的文章 -->
            <div class="article-card hover-lift">
                <div class="author-info">
                    <div class="author-avatar">李</div>
                    <a href="#" class="author-name">李华</a>
                    <span class="post-time">昨天 15:30</span>
                    <span class="post-category">旅行</span>
                </div>
                
                <h2 class="article-title">
                    <a href="#">徒步喜马拉雅：一场心灵与自然的对话</a>
                </h2>
                
                <p class="article-excerpt">喜马拉雅山脉不仅是地理上的高峰，更是许多旅行者心中的圣地。本文记录了我在喜马拉雅山区徒步的经历，沿途的壮丽景色、当地的人文风情，以及这段旅程带给我的思考...</p>
                
                <div class="article-images">
                    <div class="multi-image">
                        <div class="image-item">图片1</div>
                        <div class="image-item">图片2</div>
                        <div class="image-item">图片3</div>
                    </div>
                </div>
                
                <div class="article-actions">
                    <div class="article-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>5.7k</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>132</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-share-square"></i>
                            <span>89</span>
                        </div>
                    </div>
                    
                    <div class="action-buttons">
                        <button class="action-btn liked">
                            <i class="fas fa-heart"></i>
                            <span>已赞</span>
                        </button>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 无图片的文章 -->
            <div class="article-card hover-lift">
                <div class="author-info">
                    <div class="author-avatar">王</div>
                    <a href="#" class="author-name">王静</a>
                    <span class="post-time">3天前</span>
                    <span class="post-category">职场</span>
                </div>
                
                <h2 class="article-title">
                    <a href="#">远程工作效率提升指南：从时间管理到团队协作</a>
                </h2>
                
                <p class="article-excerpt">远程工作已经成为许多公司的常态，但如何在灵活的工作环境中保持高效？本文分享了10个实用技巧，涵盖时间管理、工作环境设置、团队沟通等多个方面，帮助你在远程工作中保持生产力...</p>
                
                <div class="article-actions">
                    <div class="article-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>3.8k</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>76</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-share-square"></i>
                            <span>42</span>
                        </div>
                    </div>
                    
                    <div class="action-buttons">
                        <button class="action-btn">
                            <i class="far fa-heart"></i>
                            <span>点赞</span>
                        </button>
                        <button class="action-btn bookmarked">
                            <i class="fas fa-bookmark"></i>
                            <span>已收藏</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 示例2：紧凑列表样式 -->
        <div class="list-example">
            <h3 class="example-title"><i class="fas fa-th-list"></i> 紧凑列表样式</h3>
            <p class="example-description">信息密度更高的紧凑布局，适合展示大量文章内容，左侧图片右侧文字的布局节省空间</p>
            
            <div class="list-compact">
                <!-- 带图片的文章 -->
                <div class="article-card hover-lift">
                    <div class="article-image-container">
                        <div class="single-image">
                            <i class="fas fa-image"></i>
                        </div>
                    </div>
                    
                    <div class="article-content">
                        <div class="author-info">
                            <div class="author-avatar">赵</div>
                            <a href="#" class="author-name">赵明</a>
                            <span class="post-time">4小时前</span>
                        </div>
                        
                        <h2 class="article-title">
                            <a href="#">数字极简主义：如何在信息爆炸时代保持专注</a>
                        </h2>
                        
                        <p class="article-excerpt">在信息过载的今天，数字极简主义成为一种新的生活方式。本文探讨如何精简数字生活，减少信息干扰，提高注意力和生产力...</p>
                        
                        <div class="article-actions">
                            <div class="article-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>1.2k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>23</span>
                                </div>
                            </div>
                            
                            <div class="action-buttons">
                                <button class="action-btn">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 无图片的文章 -->
                <div class="article-card hover-lift">
                    <div class="article-content">
                        <div class="author-info">
                            <div class="author-avatar">陈</div>
                            <a href="#" class="author-name">陈思思</a>
                            <span class="post-time">1天前</span>
                        </div>
                        
                        <h2 class="article-title">
                            <a href="#">冥想与正念：忙碌生活中的心灵栖息地</a>
                        </h2>
                        
                        <p class="article-excerpt">现代生活的快节奏让许多人感到压力和焦虑。冥想和正念练习作为古老的心灵工具，如何帮助我们在喧嚣中找到内心的平静？...</p>
                        
                        <div class="article-actions">
                            <div class="article-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>2.1k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>56</span>
                                </div>
                            </div>
                            
                            <div class="action-buttons">
                                <button class="action-btn liked">
                                    <i class="fas fa-heart"></i>
                                </button>
                                <button class="action-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 带图片的文章 -->
                <div class="article-card hover-lift">
                    <div class="article-image-container">
                        <div class="single-image">
                            <i class="fas fa-image"></i>
                        </div>
                    </div>
                    
                    <div class="article-content">
                        <div class="author-info">
                            <div class="author-avatar">刘</div>
                            <a href="#" class="author-name">刘洋</a>
                            <span class="post-time">2天前</span>
                        </div>
                        
                        <h2 class="article-title">
                            <a href="#">城市园艺：在阳台打造自己的绿色空间</a>
                        </h2>
                        
                        <p class="article-excerpt">即使生活在城市中，我们也能与自然建立联系。城市园艺不仅能美化居住环境，还能提供新鲜的食材，改善空气质量，带来心理上的愉悦...</p>
                        
                        <div class="article-actions">
                            <div class="article-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>1.8k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>37</span>
                                </div>
                            </div>
                            
                            <div class="action-buttons">
                                <button class="action-btn">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn bookmarked">
                                    <i class="fas fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 示例3：网格卡片样式 -->
        <div class="list-example">
            <h3 class="example-title"><i class="fas fa-th"></i> 网格卡片样式</h3>
            <p class="example-description">卡片式网格布局，视觉效果突出，适合图片内容丰富的社交平台</p>
            
            <div class="list-grid">
                <!-- 带单张图片的文章 -->
                <div class="article-card hover-lift">
                    <div class="article-images">
                        <div class="single-image">
                            <i class="fas fa-image me-2"></i> 美食图片
                        </div>
                    </div>
                    
                    <div class="author-info">
                        <div class="author-avatar">林</div>
                        <a href="#" class="author-name">林小厨</a>
                        <span class="post-time">3小时前</span>
                    </div>
                    
                    <h2 class="article-title">
                        <a href="#">简易家常晚餐：30分钟搞定营养均衡的一餐</a>
                    </h2>
                    
                    <p class="article-excerpt">忙碌工作日的晚餐不必复杂，这道简易料理既营养又美味，30分钟即可完成...</p>
                    
                    <div class="article-actions">
                        <div class="article-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>3.2k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>64</span>
                            </div>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="action-btn">
                                <i class="far fa-heart"></i>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 带多张图片的文章 -->
                <div class="article-card hover-lift">
                    <div class="article-images">
                        <div class="multi-image">
                            <div class="image-item">穿搭1</div>
                            <div class="image-item">穿搭2</div>
                            <div class="image-item">穿搭3</div>
                        </div>
                    </div>
                    
                    <div class="author-info">
                        <div class="author-avatar">孙</div>
                        <a href="#" class="author-name">孙时尚</a>
                        <span class="post-time">昨天</span>
                    </div>
                    
                    <h2 class="article-title">
                        <a href="#">春季简约穿搭：舒适与时尚的平衡之道</a>
                    </h2>
                    
                    <p class="article-excerpt">春季穿搭如何兼顾温度与风度？分享几套简约实用的搭配方案，适合各种场合...</p>
                    
                    <div class="article-actions">
                        <div class="article-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>7.5k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>128</span>
                            </div>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="action-btn liked">
                                <i class="fas fa-heart"></i>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 无图片的文章 -->
                <div class="article-card hover-lift">
                    <div class="author-info">
                        <div class="author-avatar">郑</div>
                        <a href="#" class="author-name">郑思维</a>
                        <span class="post-time">3天前</span>
                    </div>
                    
                    <h2 class="article-title">
                        <a href="#">批判性思维：如何在信息时代做出明智判断</a>
                    </h2>
                    
                    <p class="article-excerpt">面对海量信息，我们如何辨别真伪？批判性思维能力的培养方法和实践技巧分享...</p>
                    
                    <div class="article-actions">
                        <div class="article-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>2.9k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>87</span>
                            </div>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="action-btn">
                                <i class="far fa-heart"></i>
                            </button>
                            <button class="action-btn bookmarked">
                                <i class="fas fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 示例4：简约列表样式 -->
        <div class="list-example">
            <h3 class="example-title"><i class="fas fa-border-all"></i> 简约列表样式</h3>
            <p class="example-description">极简风格的文章列表，突出内容本身，适合注重阅读体验的社交平台</p>
            
            <div class="list-minimal">
                <!-- 文章1 -->
                <div class="article-card hover-lift">
                    <h2 class="article-title">
                        <a href="#">如何建立健康的数字习惯，远离屏幕依赖</a>
                    </h2>
                    
                    <div class="article-meta">
                        <div>
                            <a href="#" class="author-name">吴健康</a> · 健康生活 · 5小时前
                        </div>
                        <div>
                            <span class="me-3"><i class="far fa-eye me-1"></i> 1.5k</span>
                            <span class="me-3"><i class="far fa-comment me-1"></i> 29</span>
                            <button class="action-btn"><i class="far fa-heart"></i></button>
                            <button class="action-btn"><i class="far fa-bookmark"></i></button>
                        </div>
                    </div>
                </div>
                
                <!-- 文章2 -->
                <div class="article-card hover-lift">
                    <h2 class="article-title">
                        <a href="#">古典音乐对专注力的影响：科学研究与实践</a>
                    </h2>
                    
                    <div class="article-meta">
                        <div>
                            <a href="#" class="author-name">周音乐</a> · 音乐 · 1天前
                        </div>
                        <div>
                            <span class="me-3"><i class="far fa-eye me-1"></i> 2.1k</span>
                            <span class="me-3"><i class="far fa-comment me-1"></i> 42</span>
                            <button class="action-btn liked"><i class="fas fa-heart"></i></button>
                            <button class="action-btn"><i class="far fa-bookmark"></i></button>
                        </div>
                    </div>
                </div>
                
                <!-- 文章3 -->
                <div class="article-card hover-lift">
                    <h2 class="article-title">
                        <a href="#">从零开始的投资理财：新手入门指南</a>
                    </h2>
                    
                    <div class="article-meta">
                        <div>
                            <a href="#" class="author-name">钱多多</a> · 财经 · 2天前
                        </div>
                        <div>
                            <span class="me-3"><i class="far fa-eye me-1"></i> 4.7k</span>
                            <span class="me-3"><i class="far fa-comment me-1"></i> 156</span>
                            <button class="action-btn"><i class="far fa-heart"></i></button>
                            <button class="action-btn bookmarked"><i class="fas fa-bookmark"></i></button>
                        </div>
                    </div>
                </div>
                
                <!-- 文章4 -->
                <div class="article-card hover-lift">
                    <h2 class="article-title">
                        <a href="#">城市中的微型森林：垂直绿化的创新与实践</a>
                    </h2>
                    
                    <div class="article-meta">
                        <div>
                            <a href="#" class="author-name">-green</a> · 环保 · 3天前
                        </div>
                        <div>
                            <span class="me-3"><i class="far fa-eye me-1"></i> 1.8k</span>
                            <span class="me-3"><i class="far fa-comment me-1"></i> 35</span>
                            <button class="action-btn"><i class="far fa-heart"></i></button>
                            <button class="action-btn"><i class="far fa-bookmark"></i></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 点赞功能交互
        document.querySelectorAll('.action-btn').forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.preventDefault();
                
                // 点赞按钮交互
                if (this.querySelector('.fa-heart')) {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('.fa-heart');
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        if (this.querySelector('span')) {
                            this.querySelector('span').textContent = '已赞';
                        }
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        if (this.querySelector('span')) {
                            this.querySelector('span').textContent = '点赞';
                        }
                    }
                }
                
                // 收藏按钮交互
                if (this.querySelector('.fa-bookmark')) {
                    this.classList.toggle('bookmarked');
                    const icon = this.querySelector('.fa-bookmark');
                    if (this.classList.contains('bookmarked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        if (this.querySelector('span')) {
                            this.querySelector('span').textContent = '已收藏';
                        }
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        if (this.querySelector('span')) {
                            this.querySelector('span').textContent = '收藏';
                        }
                    }
                }
            });
        });
    </script>
</body>
</html>
    